﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using Wedo.Mvc.Utility;
using Wedo.Recognition.Domain.Models;
using Wedo.Recognition.Web.Controllers; 
using Wedo.Domain.Models;
using Wedo.Recognition.Domain.ViewModels;
using Wedo.Recognition.Service.Service;

namespace Wedo.MVC.Controllers
{
    public partial class UserInfoController
    {
 
        //public ActionResult BatchImport()
        //{
        //    //ViewBag.Department = Request.GetCookieValue("Department");

        //    return ReturnAjaxView(new List<ShortEmployee>());
        //}

        //[HttpPost]
        //public ActionResult BatchImport(List<int> roles, string[] selected)
        //{
        //    try
        //    {
        //        _uService.BatchImport(roles, selected, CurrentUserName);
        //        return SuccessMsg("Import Success!");
        //    }
        //    catch (Exception exp)
        //    {
        //        return ErrorMSG("Import Failed!" + exp.Message);
        //    }
        //}


        public ActionResult SearchEmployee(string dept)
        {
            CustomerService service = new CustomerService();
            var list = service.GetEmployeeByDepartment(dept);
            return ReturnAjaxView(list);

        }
         
    }
}
